<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo ($seo['title']); ?></title>
<meta name="keywords" content="<?php echo ($seo['keywords']); ?>"/>
<meta name="description" content="<?php echo ($seo['description']); ?>"/>
<link href="<?php echo C('WWWURL');?>/static/style/style.css?v=20140107" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo C('WWWURL');?>/static/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<?php echo C('WWWURL');?>/static/mediaplayer-3-16/swfobject.js"></script>
<script type="text/javascript" src="__JS__common.js"></script>
<script type="text/javascript"> 
var  STATIC_URL= '<?php echo C("WWWURL");?>/';
var isNSupportFlash = !! (document.createElement("video").canPlayType && document.createElement("video").canPlayType("video/mp4"));
var isNSupportFlashAudio = !! (document.createElement("audio").canPlayType && document.createElement("video").canPlayType("audio/mpeg"));
var HAOWJ = '<?php echo C("WWWURL");?>/';
//var isNSupportFlash = !! document.createElement("audio").canPlayType && document.createElement("audio").canPlayType("audio/mpeg") && navigator.userAgent.indexOf("Maxthon") < 0;
	
</script>
<link rel="stylesheet" type="text/css" href="/Public/style/user.css" />
<link rel="shortcut icon" href="<?php echo C('WWWURL');?>/static/style/images/favicon.ico" type="/image/x-icon" />
</head>

<body id="body123">


<div class="box">
<!--顶部 Start-->
	<div class="hTop">
		
         <div class="hTop_h2"><a href="<?php echo C('WWWURL');?>">返回首页</a></div>
       
        <div class="hTop_r">
        	<div class="hTop_rb">
            <a href="<?php echo U('/User/Index');?>">个人中心</a> | <a href="###" class="hTop_r_exit">退出</a>
        	</div>
        	<span>欢迎您，<a href="<?php echo U('/User/Index');?>" target="_blank"><?php echo ($userInfo["user_name"]); ?></a></span>
        </div>
       
    </div>
    <!--顶部 End-->
    
     <!--头部 Start-->
    <div class="head cl">
    	<a href="<?php echo C('WWWURL');?>" class="logo" title="好外教"></a>
        <h1>全美顶尖外教1对1口语培训</h1>
        <div class="phone">400-686-9850</div>
    </div>
	

    <!--头部 End-->
	<div class="nav">
    	<a onClick="clickCount(37);" <?php if($module_name == 'Index'): ?>class="nav_current"<?php endif; ?>    href="<?php echo U('/User/Index');?>">个人中心</a>
        <a onClick="clickCount(39);"  <?php if($module_name == 'Order'): ?>class="nav_current"<?php endif; ?>   href="<?php echo U('/User/Order/index');?>">购买记录<span class="sup">1</span></a>
        <a onClick="clickCount(40);" <?php if($module_name == 'Grade'): ?>class="nav_current"<?php endif; ?>  href="<?php echo U('/User/Grade');?>">评分管理<em class="news" style="background:url(__PUBLIC__/images/xbk.png) no-repeat; background-position: 0px -280px; width:20px; height:20px; right:-20px; top:4px;"></em></a>
		<div class="nav_my  userlead" >
		<a  class="nav_current" style=" float:right;font-size:14px; background-color:#FFFFFF; border-bottom:none; color:#424243; cursor: pointer;" ><p class="icon" style=" background-position:-120px -245px; width:30px; height:25px; float:left; margin-top:10px; "></p>新手引导</a>
		</div>
    </div>

	<!--个人中心-购买记录 Start-->
  	<div class="my_order">
    	<div class="my_order_h1"><b></b>我的订单</div>
        <div class="my_order_t">已买到的课程</div>
    	<div class="my_order_thead">
        	<div class="my_order_th1">商品名称</div>
            <div class="my_order_th2">单价 | 优惠</div>
            <div class="my_order_th3">实付款 | 交易状态 | 操作</div>
            <div class="my_order_th4">备注</div>
      	</div>
        <!--无订单时显示 开始-->
       <?php if(($orders) == ""): ?><div class="my_order_no">
        	<p class="my_order_no_t">您当前没有任何订单!</p>
            <p class="my_order_no_c">请拨打免费热线：<strong>400-686-9850</strong><br>或在线咨询，量身定制英语学习方案。</p>
            <p><a target="_blank" href="http://chat16.live800.com/live800/chatClient/chatbox.jsp?companyID=294632&jid=1826801284&enterurl=http%3A%2F%2Flocalhost%2Fhaowaijiao%2Findex.php&pagetitle=%E5%A4%96%E6%95%99%E4%B8%80%E5%AF%B9%E4%B8%80_%E8%8B%B1%E8%AF%AD%E5%A4%96%E6%95%99_%E8%8B%B1%E8%AF%AD%E5%8F%A3%E8%AF%AD%E5%AD%A6%E4%B9%A0_%E8%8B%B1%E8%AF%AD%E5%9F%B9%E8%AE%AD_%E5%A5%BD%E5%A4%96%E6%95%99%E7%BD%91_%E5%85%A8%E7%BE%8E%E9%A1%B6%E5%B0%96%E5%A4%96%E6%95%991%E5%AF%B91%E5%8F%A3%E8%AF%AD%E5%9F%B9%E8%AE%AD&pagereferrer=http%3A%2F%2Flocalhost%2F&lan=zh&tm=1374633880123">立即咨询</a></p>
        </div>
       <?php else: ?>
        <?php if(is_array($orders)): $i = 0; $__LIST__ = $orders;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><!--无订单时显示 结束-->
      	<table cellpadding="0" cellspacing="0" id="buyRrecords_<?php echo ($key); ?>">
           	  <thead>
               	  <tr>
                   	  <th colspan="4">订单编号：<?php echo ($vo["order_no"]); ?><span>时间：<?php echo date("Y-m-d H:i",$vo["create_date"]);?></span></th>
                  </tr>
              </thead>      
              <tbody>
              	
               	   
               	<?php if(is_array($vo[course_info])): $i = 0; $__LIST__ = $vo[course_info];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$course_info): $mod = ($i % 2 );++$i;?><tr>
               	  		
                   	  <td class="my_order_th1">
                       	  <strong><?php echo ($course_info["name"]); ?></strong>
                          <p>课时数：<?php echo ($course_info["lesson_num"]); ?>节</p>
                          <p>有效期：开通之日起<?php echo ($course_info["lesson_valid"]); ?>天</p>
                      </td>
                      <td class="my_order_th2">
                          
                       	  <strong>￥<?php echo ($course_info["price"]*$course_info['discout']); ?></strong>
						  <?php if($course_info < 1): ?><!--<p>即刻报名，立减2000元；<br />赠送<?php echo $course_info['salon_lesson']; ?>节沙龙课</p>-->
						  <p>即刻报名，<?php echo ($course_info['discout']*100); ?>折优惠；</p><?php endif; ?>
                      </td>
                      
                      <?php if($key == 0): ?><td rowspan="10" class="my_order_th3">
                       	  <strong>￥<?php echo ($vo["money"]); ?></strong>
                          <?php switch ($vo["status"]){ case -2: echo '<div class="my_order_ds">已退款</div>'; break; case -1: case 0: echo '<div class="my_order_ds">等待付款</div>'; break; case 1: echo '<div class="my_order_dsu">付款成功</div>'; break; case 2: echo '<div class="my_order_ds">交易关闭</div>'; break; } ?>
                          <?php switch ($vo["status"]){ case -1: case 0: echo '<div class="my_order_a"><a onclick="clickCount(16);" sid="'.$vo["id"].'" href="'.C('WWWURL').'/usercenter/buy.htm?id='.$vo["id"].'" class="my_order_b1" target="_blank" >现在支付</a><a onclick="clickCount(17);" sid="'.$vo["id"].'" tid="0" href="###" class="my_order_a1">删除</a></div>'; break; case 2: echo '<div class="my_order_a"><a onclick="clickCount(17);" sid="'.$k["id"].'" class="my_order_a1" href="###" tid="0">删除</a></div>'; break; } ?>
                          
                      </td>
                      <td rowspan="10" class="my_order_th4">
                      	  <?php switch ($vo["status"]){ case -1: case 0: echo "<a onclick='clickCount(18);' target='_blank' href='".C('WWWURL')."/remittance.htm'>网银转账或银行汇款</a>"; break; case 1: echo $k["remarks"]; break; } ?>
                      </td><?php endif; ?>
                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
              
              </tbody>
          </table><?php endforeach; endif; else: echo "" ;endif; endif; ?>
    </div>


<div class="footer cl">
    	<ul class="fl">
        	<li>
            	<h4>关于好外教</h4>
                <dl>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/introduction.htm#Come"><b></b><strong>好外教介绍</strong></a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/join.htm#Come"><b></b><strong>加入我们</strong></a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/contact.htm#Come"><b></b>联系我们</a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/serviceagreement.htm#Come"><b></b>服务协议</a></dd>
                </dl>
            </li>
            <li class="footer_li_2">
            	<dl>
            	<dt>学习系统</dt>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/courseintroduction.htm"><b></b>课程体系</a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/service.htm"><b></b>服务特色</a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/teacherteam.htm"><b></b>专业师资</a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/courseconsultant.htm"><b></b>贴心顾问</a></dd>
                <!--<dd><a target="_blank" href="#"><b></b>使用流程</a></dd>-->
                </dl>
            </li>
            <li class="footer_li_3">
            	<dl>
            	<dt>学习资料</dt>
				<dd><a target="_blank" href="<?php echo C('WWWURL');?>/mothersday.htm"><b></b>学员故事</a></dd>
                <dd><a target="_blank" href="<?php echo C('WWWURL');?>/bbc/index.htm"><b></b>BBC NEWS</a></dd>
                </dl>
            </li>
            <li>
            	<dl>
            	<dt>关注我们</dt>
                <dd><a target="_blank" href="http://e.weibo.com/ciba"><b class="footer_b_sina"></b>新浪微博</a></dd>
                </dl>
            </li>
        </ul>
        <div class="fr">
        	<div class="footer_fr">
                <div class="phone">400-686-9850<p>info@haowj.com</p></div>
                <div class="footer_qr">
                    <div class="footer_qr_1"></div>
                    <div class="footer_qr_2"></div>
                </div>
            </div>
        </div>
    </div>
  
    <div class="copy">
    	<div class="copy_r"><a target="_blank" href="<?php echo C('WWWURL');?>/licence/001.jpg">京ICP证100054号</a><a target="_blank" href="http://www.kingsoft.com/licence/002.jpg">新出网证<京>字001号 </a> <a target="_blank" href="http://www.miitbeian.gov.cn">京ICP备14019197-1号</a>©2003 Kingsoft Corp 京公网安备11010802014093号</div>
    </div>
    <!--版权 End-->
       
    <script type="text/javascript" src="<?php echo C('WWWURL');?>/static/js/user_register.js?v=20131204"></script>
    
   
   
 
    <!--右侧在线咨询 Start-->
    <a  class="pendant" target="_blank" href="http://chat16.live800.com/live800/chatClient/chatbox.jsp?companyID=294632&jid=1826801284&enterurl=http%3A%2F%2Flocalhost%2Fhaowaijiao%2Findex.php&pagetitle=%E5%A4%96%E6%95%99%E4%B8%80%E5%AF%B9%E4%B8%80_%E8%8B%B1%E8%AF%AD%E5%A4%96%E6%95%99_%E8%8B%B1%E8%AF%AD%E5%8F%A3%E8%AF%AD%E5%AD%A6%E4%B9%A0_%E8%8B%B1%E8%AF%AD%E5%9F%B9%E8%AE%AD_%E5%A5%BD%E5%A4%96%E6%95%99%E7%BD%91_%E5%85%A8%E7%BE%8E%E9%A1%B6%E5%B0%96%E5%A4%96%E6%95%991%E5%AF%B91%E5%8F%A3%E8%AF%AD%E5%9F%B9%E8%AE%AD&pagereferrer=http%3A%2F%2Flocalhost%2F&lan=zh&tm=1374633880123"></a>
    <style type="text/css">
        .two_codes {
            position: fixed;
            bottom: 50px;
            right: 0px;
            z-index: 100;
            _position: absolute;
            _bottom: auto;
            _top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop + 500 : document.body.scrollTop+(document.body.clientHeight-this.clientHeight) - 1);
            cursor:pointer;
        }
    </style>
    <!-- wechat start-->
    <a class="two_codes">
        <img src="<?php echo C('WWWURL');?>/static/style/images/imgs/two_code.png" alt="'好外教'微信" />
        <img src="<?php echo C('WWWURL');?>/static/style/images/index/weibo_logo.png" alt="'好外教'微信" />
    </a>

<div id="tip_my_buy" style="display:none">
	<div class="tipBg"></div>
	<div class="tip my_buy_tip1">
		<div class="tip_t"><a id="tip_my_buy_close" href="###" title="关闭"></a>提示</div>
	    <div class="tip_c">
	    	<p>您确定要删除该订单吗？删除订单后，不能恢复了哦。</p>
	        <a tokenid='<?php echo ($token); ?>' id="tip_my_buy_summbit" href="###">确定</a>
	    </div>
	</div>
</div>